<%@page import="java.awt.Button"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="doantotnghiep.model.Customer"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@page import="java.util.ArrayList"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<script type="text/javascript">
	$(function() {
		$("#exportedDateKey").datepicker();
	});
</script>

</head>
<body>
	<br>
	<br>
	<br>
	<div class="tagline_right">
		<fieldset>
			<legend>Chọn ngày</legend>
			<input style="font-size: 15px ;font-style: italic; color: silver;" type="text" id = "exportedDateKey" placeholder="Chọn ngày để tìm kiếm"/>
			<input type="button"  id="purchasesearch" value="Tìm kiếm" /><span id="purchase-error" style="color:red"> </span>
		</fieldset>
	</div>
	<div align="center">
			<h1 style="color: blue;">QUẢN LÝ PHIẾU XUẤT HÀNG</h1>
					<table class="table1" id="exporttable">
						<tr>
							<th scope="col" abbr="Starter">Mã phiếu xuất hàng</th>
							<th scope="col" abbr="Starter">Ngày xuất Hàng</th>
							<th scope="col" abbr="Starter">Nơi giao hàng</th>
							<th scope="col" abbr="Starter">Nhân viên lập đơn</th>
							<th scope="col" abbr="Starter">Khách hàng</th>
							<th scope="col" abbr="Starter">Chi tiết</th>
						</tr>

						<c:forEach items="${exportModel.exportedMedicineDTOs}" var="export"
							varStatus="status">
							<tr class="<c:if test="${status.count % 2 == 0}">even</c:if>">
								<td>${export.exportedID}</td>
								<td>${export.exportedDate}</td>
								<td>${export.deliveryLocation}</td>
								<td>${export.staffName}</td>
								<td>${export.customerName}</td>
								<td><a
									href="#" onclick="detailPurchase(${export.exportedID})"> <img src="<c:url value="/resources/images/detail.jpg"/>"/></a></td>
						</c:forEach>
						
						
					</table>
					 <div id="exportpaging"></div> 
					<script type="text/javascript">
						var pager = new Pager('exporttable', 7);
						pager.init();
						pager.showPageNav('pager', 'exportpaging');
						pager.showPage(1);
					</script>
					<a href="#"><input class="button" id="addexport" type="button" 
								value="Thêm"></a> 
					
</div>
</body>
</html>